package iohuan_;

import com.sun.org.apache.xpath.internal.operations.String;

import java.io.*;

public class Zi_huan {
    public static void main(String[] args)  throws  Exception {
        OutputStream out = new FileOutputStream("a.txt");

        BufferedOutputStream bos = new BufferedOutputStream(out);

        java.lang.String s = "hello";
        bos.write(s.getBytes());
        bos.close();
    }
//        InputStream in=new FileInputStream("a.txt");
//        BufferedInputStream bis=new BufferedInputStream(in);
//   byte[] by=new byte[1024];
//   int len=0;
//   while ((len=bis.read(by))!=-1)
//   {
//      bos.write(by,0,len);
//   }
//   bos.close();
//   bis.close();





}
